<?php 
class Region extends CS_Controller
{
    private $reginType = array('0'=>'国家', '1'=>'省份', '2'=>'城市', '3'=>'县/区');
    public function _init()
    {
        $this->load->helper(array('common'));
        $this->load->library('pagination');
        $this->load->model('region_model', 'region');
    }
    
    public function test()
    {
        $all = json_decode('[{"name":"上海","match":"上海|shanghai|SH","pinyin":"shanghai","sanzima":"SH"},{"name":"天津","match":"天津|tianjin|TJ","pinyin":"tianjin","sanzima":"TJ"},{"name":"北京","match":"北京|beijing|BJ","pinyin":"beijing","sanzima":"BJ"},{"name":"重庆","match":"重庆|chongqing|CQ","pinyin":"chongqing","sanzima":"CQ"},{"name":"深圳","match":"深圳|shenzhen|S","pinyin":"shenzhen","sanzima":"S"},{"name":"广州","match":"广州|guangzhou|GZ","pinyin":"guangzhou","sanzima":"GZ"},{"name":"长沙","match":"长沙|changsha|CS","pinyin":"changsha","sanzima":"CS"},{"name":"杭州","match":"杭州|hangzhou|HZ","pinyin":"hangzhou","sanzima":"HZ"},{"name":"成都","match":"成都|chengdu|CD","pinyin":"chengdu","sanzima":"CD"},{"name":"太原","match":"太原|taiyuan|TY","pinyin":"taiyuan","sanzima":"TY"},{"name":"济南","match":"济南|jinan|JN","pinyin":"jinan","sanzima":"JN"},{"name":"西安","match":"西安|xian|XA","pinyin":"xian","sanzima":"XA"},{"name":"银川","match":"银川|yinchuan|YC","pinyin":"yinchuan","sanzima":"YC"},{"name":"沈阳","match":"沈阳|shenyang|SY","pinyin":"shenyang","sanzima":"SY"},{"name":"长春","match":"长春|changchun|CC","pinyin":"changchun","sanzima":"CC"},{"name":"南昌","match":"南昌|nanchang|NC","pinyin":"nanchang","sanzima":"NC"},{"name":"南京","match":"南京|nanjing|NJ","pinyin":"nanjing","sanzima":"NJ"},{"name":"武汉","match":"武汉|wuhan|WH","pinyin":"wuhan","sanzima":"WH"},{"name":"哈尔滨","match":"哈尔滨|haerbin|HEB","pinyin":"haerbin","sanzima":"HEB"},{"name":"海口","match":"海口|haikou|HK","pinyin":"haikou","sanzima":"HK"},{"name":"贵阳","match":"贵阳|guiyang|GY","pinyin":"guiyang","sanzima":"GY"},{"name":"南宁","match":"南宁|nanning|NN","pinyin":"nanning","sanzima":"NN"},{"name":"兰州","match":"兰州|lanzhou|LZ","pinyin":"lanzhou","sanzima":"LZ"},{"name":"福州","match":"福州|fuzhou|FZ","pinyin":"fuzhou","sanzima":"FZ"},{"name":"合肥","match":"合肥|hefei|HF","pinyin":"hefei","sanzima":"HF"},{"name":"昆明","match":"昆明|kunming|KM","pinyin":"kunming","sanzima":"KM"},{"name":"拉萨","match":"拉萨|lasa|LS","pinyin":"lasa","sanzima":"LS"},{"name":"乌鲁木齐","match":"乌鲁木齐|wulumuqi|WLMQ","pinyin":"wulumuqi","sanzima":"WLMQ"},{"name":"西宁","match":"西宁|xining|XN","pinyin":"xining","sanzima":"XN"},{"name":"株洲","match":"株洲|zhuzhou|ZZ","pinyin":"zhuzhou","sanzima":"ZZ"},{"name":"常德","match":"常德|changde|CD","pinyin":"changde","sanzima":"CD"},{"name":"岳阳","match":"岳阳|yueyang|YY","pinyin":"yueyang","sanzima":"YY"},{"name":"温州","match":"温州|wenzhou|WZ","pinyin":"wenzhou","sanzima":"WZ"},{"name":"台州","match":"台州|taizhouzj|TZ","pinyin":"taizhouzj","sanzima":"TZ"},{"name":"金华","match":"金华|jinhua|JH","pinyin":"jinhua","sanzima":"JH"},{"name":"宁波","match":"宁波|ningbo|NB","pinyin":"ningbo","sanzima":"NB"},{"name":"绍兴","match":"绍兴|shaoxing|SX","pinyin":"shaoxing","sanzima":"SX"},{"name":"舟山","match":"舟山|zhoushan|ZS","pinyin":"zhoushan","sanzima":"ZS"},{"name":"嘉兴","match":"嘉兴|jiaxing|JX","pinyin":"jiaxing","sanzima":"JX"},{"name":"克拉玛依","match":"克拉玛依|kelamayi|KLMY","pinyin":"kelamayi","sanzima":"KLMY"},{"name":"临汾","match":"临汾|linfen|LF","pinyin":"linfen","sanzima":"LF"},{"name":"大同","match":"大同|datong|DT","pinyin":"datong","sanzima":"DT"},{"name":"临沂","match":"临沂|linyi|LY","pinyin":"linyi","sanzima":"LY"},{"name":"济宁","match":"济宁|jining|JN","pinyin":"jining","sanzima":"JN"},{"name":"青岛","match":"青岛|qingdao|QD","pinyin":"qingdao","sanzima":"QD"},{"name":"泰安","match":"泰安|taian|TA","pinyin":"taian","sanzima":"TA"},{"name":"莱芜","match":"莱芜|laiwu|LW","pinyin":"laiwu","sanzima":"LW"},{"name":"淄博","match":"淄博|zibo|ZB","pinyin":"zibo","sanzima":"ZB"},{"name":"潍坊","match":"潍坊|weifang|WF","pinyin":"weifang","sanzima":"WF"},{"name":"东营","match":"东营|dongying|DY","pinyin":"dongying","sanzima":"DY"},{"name":"威海","match":"威海|weihai|WH","pinyin":"weihai","sanzima":"WH"},{"name":"烟台","match":"烟台|yantai|YT","pinyin":"yantai","sanzima":"YT"},{"name":"鄂尔多斯","match":"鄂尔多斯|eerduosi|EEDS","pinyin":"eerduosi","sanzima":"EEDS"},{"name":"包头","match":"包头|baotou|BT","pinyin":"baotou","sanzima":"BT"},{"name":"呼和浩特","match":"呼和浩特|huhehaote|HHHT","pinyin":"huhehaote","sanzima":"HHHT"},{"name":"大连","match":"大连|dalian|DL","pinyin":"dalian","sanzima":"DL"},{"name":"鞍山","match":"鞍山|anshan|AS","pinyin":"anshan","sanzima":"AS"},{"name":"葫芦岛","match":"葫芦岛|huludao|HLD","pinyin":"huludao","sanzima":"HLD"},{"name":"锦州","match":"锦州|jinzhou|JZ","pinyin":"jinzhou","sanzima":"JZ"},{"name":"盘锦","match":"盘锦|panjin|PJ","pinyin":"panjin","sanzima":"PJ"},{"name":"吉林","match":"吉林|jilin|JL","pinyin":"jilin","sanzima":"JL"},{"name":"徐州","match":"徐州|xuzhou|XZ","pinyin":"xuzhou","sanzima":"XZ"},{"name":"苏州","match":"苏州|suzhou|SZ","pinyin":"suzhou","sanzima":"SZ"},{"name":"无锡","match":"无锡|wuxi|WX","pinyin":"wuxi","sanzima":"WX"},{"name":"南通","match":"南通|nantong|NT","pinyin":"nantong","sanzima":"NT"},{"name":"泰州","match":"泰州|taizhousd|TZ","pinyin":"taizhousd","sanzima":"TZ"},{"name":"扬州","match":"扬州|yangzhou|YZ","pinyin":"yangzhou","sanzima":"YZ"},{"name":"盐城","match":"盐城|yancheng|YC","pinyin":"yancheng","sanzima":"YC"},{"name":"淮安","match":"淮安|huaian|HA","pinyin":"huaian","sanzima":"HA"},{"name":"连云港","match":"连云港|lianyungang|LYG","pinyin":"lianyungang","sanzima":"LYG"},{"name":"宜昌","match":"宜昌|yichang|YC","pinyin":"yichang","sanzima":"YC"},{"name":"襄阳","match":"襄阳|xiangyang|XY","pinyin":"xiangyang","sanzima":"XY"},{"name":"洛阳","match":"洛阳|luoyang|LY","pinyin":"luoyang","sanzima":"LY"},{"name":"开封","match":"开封|kaifeng|KF","pinyin":"kaifeng","sanzima":"KF"},{"name":"郑州","match":"郑州|zhengzhou|ZZ","pinyin":"zhengzhou","sanzima":"ZZ"},{"name":"新乡","match":"新乡|xinxiang|XX","pinyin":"xinxiang","sanzima":"XX"},{"name":"大庆","match":"大庆|daqing|DQ","pinyin":"daqing","sanzima":"DQ"},{"name":"齐齐哈尔","match":"齐齐哈尔|qiqihaer|QQHE","pinyin":"qiqihaer","sanzima":"QQHE"},{"name":"廊坊","match":"廊坊|langfang|LF","pinyin":"langfang","sanzima":"LF"},{"name":"唐山","match":"唐山|tangshan|TS","pinyin":"tangshan","sanzima":"TS"},{"name":"秦皇岛","match":"秦皇岛|qinhuangdao|QHD","pinyin":"qinhuangdao","sanzima":"QHD"},{"name":"三亚","match":"三亚|sanya|SY","pinyin":"sanya","sanzima":"SY"},{"name":"柳州","match":"柳州|liuzhou|LZ","pinyin":"liuzhou","sanzima":"LZ"},{"name":"桂林","match":"桂林|guilin|GL","pinyin":"guilin","sanzima":"GL"},{"name":"珠海","match":"珠海|zhuhai|ZH","pinyin":"zhuhai","sanzima":"ZH"},{"name":"中山","match":"中山|zhongshan|ZS","pinyin":"zhongshan","sanzima":"ZS"},{"name":"江门","match":"江门|jiangmen|JM","pinyin":"jiangmen","sanzima":"JM"},{"name":"肇庆","match":"肇庆|zhaoqing|ZQ","pinyin":"zhaoqing","sanzima":"ZQ"},{"name":"惠州","match":"惠州|huizhou|HZ","pinyin":"huizhou","sanzima":"HZ"},{"name":"佛山","match":"佛山|foshan|FS","pinyin":"foshan","sanzima":"FS"},{"name":"东莞","match":"东莞|dongguan|DG","pinyin":"dongguan","sanzima":"DG"},{"name":"漳州","match":"漳州|zhangzhou|ZZ","pinyin":"zhangzhou","sanzima":"ZZ"},{"name":"厦门","match":"厦门|xiamen|XM","pinyin":"xiamen","sanzima":"XM"},{"name":"泉州","match":"泉州|quanzhou|QZ","pinyin":"quanzhou","sanzima":"QZ"},{"name":"龙岩","match":"龙岩|longyan|LY","pinyin":"longyan","sanzima":"LY"},{"name":"芜湖","match":"芜湖|wuhu|WH","pinyin":"wuhu","sanzima":"WH"},{"name":"马鞍山","match":"马鞍山|maanshan|MAS","pinyin":"maanshan","sanzima":"MAS"},{"name":"蚌埠","match":"蚌埠|bengbu|BB","pinyin":"bengbu","sanzima":"BB"},{"name":"阜阳","match":"阜阳|fuyangah|FY","pinyin":"fuyangah","sanzima":"FY"},{"name":"攀枝花","match":"攀枝花|panzhihua|PZH","pinyin":"panzhihua","sanzima":"PZH"},{"name":"承德","match":"承德|chengde|CD","pinyin":"chengde","sanzima":"CD"},{"name":"湖州","match":"湖州|huzhou|HZ","pinyin":"huzhou","sanzima":"HZ"},{"name":"常州","match":"常州|changzhou|CZ","pinyin":"changzhou","sanzima":"CZ"},{"name":"石家庄","match":"石家庄|shijiazhuang|SJZ","pinyin":"shijiazhuang","sanzima":"SJZ"},{"name":"郴州","match":"郴州|chenzhou|CZ","pinyin":"chenzhou","sanzima":"CZ"},{"name":"衡阳","match":"衡阳|henyang|HY","pinyin":"henyang","sanzima":"HY"},{"name":"怀化","match":"怀化|huaihua|HH","pinyin":"huaihua","sanzima":"HH"},{"name":"湘潭","match":"湘潭|xiangtan|XT","pinyin":"xiangtan","sanzima":"XT"},{"name":"韶山","match":"韶山|shaoshan|SS","pinyin":"shaoshan","sanzima":"SS"},{"name":"浏阳","match":"浏阳|liuyang|LY","pinyin":"liuyang","sanzima":"LY"},{"name":"益阳","match":"益阳|yiyang|YY","pinyin":"yiyang","sanzima":"YY"},{"name":"张家界","match":"张家界|zhangjiajie|ZJJ","pinyin":"zhangjiajie","sanzima":"ZJJ"},{"name":"衢州","match":"衢州|quzhou|QZ","pinyin":"quzhou","sanzima":"QZ"},{"name":"东阳","match":"东阳|dongyang|DY","pinyin":"dongyang","sanzima":"DY"},{"name":"义乌","match":"义乌|yiwu|YW","pinyin":"yiwu","sanzima":"YW"},{"name":"建德","match":"建德|jiande|JD","pinyin":"jiande","sanzima":"JD"},{"name":"富阳","match":"富阳|fuyangzj|FY","pinyin":"fuyangzj","sanzima":"FY"},{"name":"海宁","match":"海宁|haining|HN","pinyin":"haining","sanzima":"HN"},{"name":"桐乡","match":"桐乡|tongxiang|TX","pinyin":"tongxiang","sanzima":"TX"},{"name":"普洱","match":"普洱|puer|PE","pinyin":"puer","sanzima":"PE"},{"name":"瑞丽","match":"瑞丽|ruili|RL","pinyin":"ruili","sanzima":"RL"},{"name":"玉溪","match":"玉溪|yuxi|YX","pinyin":"yuxi","sanzima":"YX"},{"name":"曲靖","match":"曲靖|qujing|QJ","pinyin":"qujing","sanzima":"QJ"},{"name":"大理","match":"大理|dali|DL","pinyin":"dali","sanzima":"DL"},{"name":"丽江","match":"丽江|lijiang|LJ","pinyin":"lijiang","sanzima":"LJ"},{"name":"和田","match":"和田|hetian|HT","pinyin":"hetian","sanzima":"HT"},{"name":"喀什","match":"喀什|kashi|KS","pinyin":"kashi","sanzima":"KS"},{"name":"吐鲁番","match":"吐鲁番|tulufan|TLF","pinyin":"tulufan","sanzima":"TLF"},{"name":"哈密","match":"哈密|hami|HM","pinyin":"hami","sanzima":"HM"},{"name":"宜宾","match":"宜宾|yibin|YB","pinyin":"yibin","sanzima":"YB"},{"name":"泸州","match":"泸州|luzhou|LZ","pinyin":"luzhou","sanzima":"LZ"},{"name":"峨眉山","match":"峨眉山|emeishan|EMS","pinyin":"emeishan","sanzima":"EMS"},{"name":"乐山","match":"乐山|leshan|LS","pinyin":"leshan","sanzima":"LS"},{"name":"南充","match":"南充|nanchong|NC","pinyin":"nanchong","sanzima":"NC"},{"name":"绵阳","match":"绵阳|mianyang|MY","pinyin":"mianyang","sanzima":"MY"},{"name":"晋城","match":"晋城|jincheng|JC","pinyin":"jincheng","sanzima":"JC"},{"name":"运城","match":"运城|yuncheng|YC","pinyin":"yuncheng","sanzima":"YC"},{"name":"长治","match":"长治|changzhi|CZ","pinyin":"changzhi","sanzima":"CZ"},{"name":"吕梁","match":"吕梁|lvliang|LL","pinyin":"lvliang","sanzima":"LL"},{"name":"晋中","match":"晋中|jinzhong|JZ","pinyin":"jinzhong","sanzima":"JZ"},{"name":"朔州","match":"朔州|shuozhou|SZ","pinyin":"shuozhou","sanzima":"SZ"},{"name":"滕州","match":"滕州|tengzhou|TZ","pinyin":"tengzhou","sanzima":"TZ"},{"name":"枣庄","match":"枣庄|zaozhuang|ZZ","pinyin":"zaozhuang","sanzima":"ZZ"},{"name":"兖州","match":"兖州|yanzhou|YZ","pinyin":"yanzhou","sanzima":"YZ"},{"name":"曲阜","match":"曲阜|qufu|QF","pinyin":"qufu","sanzima":"QF"},{"name":"寿光","match":"寿光|shouguang|SG","pinyin":"shouguang","sanzima":"SG"},{"name":"文登","match":"文登|wendeng|WD","pinyin":"wendeng","sanzima":"WD"},{"name":"乐陵","match":"乐陵|leling|LL","pinyin":"leling","sanzima":"LL"},{"name":"汉中","match":"汉中|hanzhong|HZ","pinyin":"hanzhong","sanzima":"HZ"},{"name":"咸阳","match":"咸阳|xianyang|XY","pinyin":"xianyang","sanzima":"XY"},{"name":"宝鸡","match":"宝鸡|baoji|BJ","pinyin":"baoji","sanzima":"BJ"},{"name":"渭南","match":"渭南|weinan|WN","pinyin":"weinan","sanzima":"WN"},{"name":"延安","match":"延安|yanan|YA","pinyin":"yanan","sanzima":"YA"},{"name":"榆林","match":"榆林|yulinsx|YL","pinyin":"yulinsx","sanzima":"YL"},{"name":"赤峰","match":"赤峰|chifeng|CF","pinyin":"chifeng","sanzima":"CF"},{"name":"铁岭","match":"铁岭|tieling|TL","pinyin":"tieling","sanzima":"TL"},{"name":"丹东","match":"丹东|dandong|DD","pinyin":"dandong","sanzima":"DD"},{"name":"营口","match":"营口|yingkou|YK","pinyin":"yingkou","sanzima":"YK"},{"name":"海城","match":"海城|haicheng|HC","pinyin":"haicheng","sanzima":"HC"},{"name":"辽阳","match":"辽阳|liaoyang|LY","pinyin":"liaoyang","sanzima":"LY"},{"name":"本溪","match":"本溪|benxi|BX","pinyin":"benxi","sanzima":"BX"},{"name":"抚顺","match":"抚顺|fushun|FS","pinyin":"fushun","sanzima":"FS"},{"name":"新民","match":"新民|xinmin|XM","pinyin":"xinmin","sanzima":"XM"},{"name":"辽源","match":"辽源|liaoyuan|LY","pinyin":"liaoyuan","sanzima":"LY"},{"name":"集安","match":"集安|jianjl|JA","pinyin":"jianjl","sanzima":"JA"},{"name":"通化","match":"通化|tonghua|TH","pinyin":"tonghua","sanzima":"TH"},{"name":"临江","match":"临江|linjiang|LJ","pinyin":"linjiang","sanzima":"LJ"},{"name":"白山","match":"白山|baishan|BS","pinyin":"baishan","sanzima":"BS"},{"name":"梅河口","match":"梅河口|meihekou|MHK","pinyin":"meihekou","sanzima":"MHK"},{"name":"延吉","match":"延吉|yanji|YJ","pinyin":"yanji","sanzima":"YJ"},{"name":"蛟河","match":"蛟河|jiaohe|JH","pinyin":"jiaohe","sanzima":"JH"},{"name":"敦化","match":"敦化|dunhua|DH","pinyin":"dunhua","sanzima":"DH"},{"name":"德惠","match":"德惠|dehui|DH","pinyin":"dehui","sanzima":"DH"},{"name":"白城","match":"白城|baicheng|BC","pinyin":"baicheng","sanzima":"BC"},{"name":"赣州","match":"赣州|ganzhou|GZ","pinyin":"ganzhou","sanzima":"GZ"},{"name":"吉安","match":"吉安|jianjx|JA","pinyin":"jianjx","sanzima":"JA"},{"name":"上饶","match":"上饶|shangrao|SR","pinyin":"shangrao","sanzima":"SR"},{"name":"景德镇","match":"景德镇|jindezhen|JDZ","pinyin":"jindezhen","sanzima":"JDZ"},{"name":"九江","match":"九江|jiujiang|JJ","pinyin":"jiujiang","sanzima":"JJ"},{"name":"昆山","match":"昆山|kunshan|KS","pinyin":"kunshan","sanzima":"KS"},{"name":"宜兴","match":"宜兴|yixing|YX","pinyin":"yixing","sanzima":"YX"},{"name":"常熟","match":"常熟|changshu|CS","pinyin":"changshu","sanzima":"CS"},{"name":"张家港","match":"张家港|zhangjiagang|ZJG","pinyin":"zhangjiagang","sanzima":"ZJG"},{"name":"丹阳","match":"丹阳|danyang|DY","pinyin":"danyang","sanzima":"DY"},{"name":"黄石","match":"黄石|huangshi|HS","pinyin":"huangshi","sanzima":"HS"},{"name":"鄂州","match":"鄂州|ezhou|EZ","pinyin":"ezhou","sanzima":"EZ"},{"name":"荆州","match":"荆州|jingzhou|JZ","pinyin":"jingzhou","sanzima":"JZ"},{"name":"荆门","match":"荆门|jingmen|JM","pinyin":"jingmen","sanzima":"JM"},{"name":"十堰","match":"十堰|shiyan|SY","pinyin":"shiyan","sanzima":"SY"},{"name":"荥阳","match":"荥阳|xingyang|XY","pinyin":"xingyang","sanzima":"XY"},{"name":"汝州","match":"汝州|ruzhou|RZ","pinyin":"ruzhou","sanzima":"RZ"},{"name":"登封","match":"登封|dengfeng|DF","pinyin":"dengfeng","sanzima":"DF"},{"name":"商丘","match":"商丘|shangqiu|SQ","pinyin":"shangqiu","sanzima":"SQ"},{"name":"新郑","match":"新郑|xinzheng|XZ","pinyin":"xinzheng","sanzima":"XZ"},{"name":"焦作","match":"焦作|jiaozuo|JZ","pinyin":"jiaozuo","sanzima":"JZ"},{"name":"濮阳","match":"濮阳|puyang|PY","pinyin":"puyang","sanzima":"PY"},{"name":"安阳","match":"安阳|anyang|AY","pinyin":"anyang","sanzima":"AY"},{"name":"绥芬河","match":"绥芬河|suifenhe|SFH","pinyin":"suifenhe","sanzima":"SFH"},{"name":"牡丹江","match":"牡丹江|mudanjiang|MDJ","pinyin":"mudanjiang","sanzima":"MDJ"},{"name":"七台河","match":"七台河|qitaihe|QTH","pinyin":"qitaihe","sanzima":"QTH"},{"name":"佳木斯","match":"佳木斯|jiamusi|JMS","pinyin":"jiamusi","sanzima":"JMS"},{"name":"伊春","match":"伊春|yichunhlj|YC","pinyin":"yichunhlj","sanzima":"YC"},{"name":"邯郸","match":"邯郸|handan|HD","pinyin":"handan","sanzima":"HD"},{"name":"衡水","match":"衡水|henshui|HS","pinyin":"henshui","sanzima":"HS"},{"name":"定州","match":"定州|dingzhou|DZ","pinyin":"dingzhou","sanzima":"DZ"},{"name":"保定","match":"保定|baoding|BD","pinyin":"baoding","sanzima":"BD"},{"name":"涿州","match":"涿州|zhuozhou|ZZ","pinyin":"zhuozhou","sanzima":"ZZ"},{"name":"三河","match":"三河|sanhe|SH","pinyin":"sanhe","sanzima":"SH"},{"name":"迁安","match":"迁安|qianan|QA","pinyin":"qianan","sanzima":"QA"},{"name":"遵化","match":"遵化|zunhua|ZH","pinyin":"zunhua","sanzima":"ZH"},{"name":"遵义","match":"遵义|zunyi|ZY","pinyin":"zunyi","sanzima":"ZY"},{"name":"都匀","match":"都匀|duyun|DY","pinyin":"duyun","sanzima":"DY"},{"name":"安顺","match":"安顺|anshun|AS","pinyin":"anshun","sanzima":"AS"},{"name":"六盘水","match":"六盘水|liupanshui|LPS","pinyin":"liupanshui","sanzima":"LPS"},{"name":"仁怀","match":"仁怀|renhuai|RH","pinyin":"renhuai","sanzima":"RH"},{"name":"赤水","match":"赤水|chishui|CS","pinyin":"chishui","sanzima":"CS"},{"name":"北海","match":"北海|beihai|BH","pinyin":"beihai","sanzima":"BH"},{"name":"玉林","match":"玉林|yulingx|YL","pinyin":"yulingx","sanzima":"YL"},{"name":"湛江","match":"湛江|zhanjiang|ZJ","pinyin":"zhanjiang","sanzima":"ZJ"},{"name":"茂名","match":"茂名|maoming|MM","pinyin":"maoming","sanzima":"MM"},{"name":"汕头","match":"汕头|shantou|ST","pinyin":"shantou","sanzima":"ST"},{"name":"潮州","match":"潮州|chaozhou|CZ","pinyin":"chaozhou","sanzima":"CZ"},{"name":"梅州","match":"梅州|meizhou|MZ","pinyin":"meizhou","sanzima":"MZ"},{"name":"韶关","match":"韶关|shaoguan|SG","pinyin":"shaoguan","sanzima":"SG"},{"name":"清远","match":"清远|qingyuan|QY","pinyin":"qingyuan","sanzima":"QY"},{"name":"河源","match":"河源|heyuan|HY","pinyin":"heyuan","sanzima":"HY"},{"name":"天水","match":"天水|tianshui|TS","pinyin":"tianshui","sanzima":"TS"},{"name":"敦煌","match":"敦煌|dunhuang|DH","pinyin":"dunhuang","sanzima":"DH"},{"name":"宁德","match":"宁德|ningde|ND","pinyin":"ningde","sanzima":"ND"},{"name":"武夷山","match":"武夷山|wuyishan|WYS","pinyin":"wuyishan","sanzima":"WYS"},{"name":"黄山","match":"黄山|huangshan|HS","pinyin":"huangshan","sanzima":"HS"},{"name":"安庆","match":"安庆|anqing|AQ","pinyin":"anqing","sanzima":"AQ"},{"name":"池州","match":"池州|chizhou|CZ","pinyin":"chizhou","sanzima":"CZ"},{"name":"铜陵","match":"铜陵|tongling|TL","pinyin":"tongling","sanzima":"TL"},{"name":"宣城","match":"宣城|xuancheng|XC","pinyin":"xuancheng","sanzima":"XC"},{"name":"六安","match":"六安|liuan|LA","pinyin":"liuan","sanzima":"LA"},{"name":"亳州","match":"亳州|bozhou|BZ","pinyin":"bozhou","sanzima":"BZ"},{"name":"淮北","match":"淮北|huaibei|HB","pinyin":"huaibei","sanzima":"HB"},{"name":"番禺","match":"番禺|panyu|FY","pinyin":"panyu","sanzima":"FY"},{"name":"镇江","match":"镇江|zhenjiang|ZJ","pinyin":"zhenjiang","sanzima":"ZJ"},{"name":"德州","match":"德州|dezhou|DZ","pinyin":"dezhou","sanzima":"DZ"},{"name":"沧州","match":"沧州|cangzhou|CZ","pinyin":"cangzhou","sanzima":"CZ"},{"name":"巢湖","match":"巢湖|chaohu|CH","pinyin":"chaohu","sanzima":"CH"},{"name":"滁州","match":"滁州|chuzhou|CZ","pinyin":"chuzhou","sanzima":"CZ"},{"name":"淮南","match":"淮南|huainan|HN","pinyin":"huainan","sanzima":"HN"},{"name":"日照","match":"日照|rizhao|RZ","pinyin":"rizhao","sanzima":"RZ"},{"name":"宿迁","match":"宿迁|suqian|SQ","pinyin":"suqian","sanzima":"SQ"},{"name":"聊城","match":"聊城|liaocheng|LC","pinyin":"liaocheng","sanzima":"LC"},{"name":"菏泽","match":"菏泽|heze|HZ","pinyin":"heze","sanzima":"HZ"},{"name":"黑河","match":"黑河|heihe|HH","pinyin":"heihe","sanzima":"HH"},{"name":"萍乡","match":"萍乡|pingxiang|PX","pinyin":"pingxiang","sanzima":"PX"},{"name":"花都","match":"花都|huadu|HD","pinyin":"huadu","sanzima":"HD"},{"name":"从化","match":"从化|conghua|CH","pinyin":"conghua","sanzima":"CH"},{"name":"增城","match":"增城|zengcheng|ZC","pinyin":"zengcheng","sanzima":"ZC"},{"name":"汕尾","match":"汕尾|shanwei|SW","pinyin":"shanwei","sanzima":"SW"},{"name":"揭阳","match":"揭阳|jieyang|JY","pinyin":"jieyang","sanzima":"JY"},{"name":"阳江","match":"阳江|yangjiang|YJ","pinyin":"yangjiang","sanzima":"YJ"},{"name":"鸡西","match":"鸡西|jixi|JX","pinyin":"jixi","sanzima":"JX"},{"name":"顺德","match":"顺德|shunde|SD","pinyin":"shunde","sanzima":"SD"},{"name":"四平","match":"四平|siping|SP","pinyin":"siping","sanzima":"SP"},{"name":"江阴","match":"江阴|jiangyin|JY","pinyin":"jiangyin","sanzima":"JY"},{"name":"信阳","match":"信阳|xinyang|XY","pinyin":"xinyang","sanzima":"XY"},{"name":"靖江","match":"靖江|jingjiang|JJ","pinyin":"jingjiang","sanzima":"JJ"},{"name":"万州","match":"万州|wanzhou|WZ","pinyin":"wanzhou","sanzima":"WZ"},{"name":"吴江","match":"吴江|wujiang|WJ","pinyin":"wujiang","sanzima":"WJ"},{"name":"太仓","match":"太仓|taicang|TC","pinyin":"taicang","sanzima":"TC"},{"name":"平顶山","match":"平顶山|pingdingshan|PDS","pinyin":"pingdingshan","sanzima":"PDS"},{"name":"鹤壁","match":"鹤壁|hebi|HB","pinyin":"hebi","sanzima":"HB"},{"name":"许昌","match":"许昌|xuchang|XC","pinyin":"xuchang","sanzima":"XC"},{"name":"漯河","match":"漯河|luohe|TH","pinyin":"luohe","sanzima":"TH"},{"name":"三门峡","match":"三门峡|sanmenxia|SMX","pinyin":"sanmenxia","sanzima":"SMX"},{"name":"南阳","match":"南阳|nanyang|NY","pinyin":"nanyang","sanzima":"NY"},{"name":"周口","match":"周口|zhoukou|ZK","pinyin":"zhoukou","sanzima":"ZK"},{"name":"驻马店","match":"驻马店|zhumadian|ZMD","pinyin":"zhumadian","sanzima":"ZMD"},{"name":"济源","match":"济源|jiyuan|JY","pinyin":"jiyuan","sanzima":"JY"},{"name":"抚州","match":"抚州|fuzhoujx|FZ","pinyin":"fuzhoujx","sanzima":"FZ"},{"name":"宜春","match":"宜春|yichun|YC","pinyin":"yichun","sanzima":"YC"},{"name":"鹰潭","match":"鹰潭|yingtan|YT","pinyin":"yingtan","sanzima":"YT"},{"name":"新余","match":"新余|xinyu|XY","pinyin":"xinyu","sanzima":"XY"},{"name":"德阳","match":"德阳|deyang|DY","pinyin":"deyang","sanzima":"DY"},{"name":"瓦房店","match":"瓦房店|wafangdian|WFD","pinyin":"wafangdian","sanzima":"WFD"},{"name":"阜新","match":"阜新|fuxin|FX","pinyin":"fuxin","sanzima":"FX"},{"name":"朝阳","match":"朝阳|chaoyang|CY","pinyin":"chaoyang","sanzima":"CY"},{"name":"凤城","match":"凤城|fengchengln|FC","pinyin":"fengchengln","sanzima":"FC"},{"name":"东港","match":"东港|donggang|DG","pinyin":"donggang","sanzima":"DG"},{"name":"大石桥","match":"大石桥|dashiqiao|DSQ","pinyin":"dashiqiao","sanzima":"DSQ"},{"name":"盖州","match":"盖州|gaizhou|GZ","pinyin":"gaizhou","sanzima":"GZ"},{"name":"灯塔","match":"灯塔|dengta|DT","pinyin":"dengta","sanzima":"DT"},{"name":"兴城","match":"兴城|xingcheng|XC","pinyin":"xingcheng","sanzima":"XC"},{"name":"庄河","match":"庄河|zhuanghe|ZH","pinyin":"zhuanghe","sanzima":"ZH"},{"name":"普兰店","match":"普兰店|pulandian|PLD","pinyin":"pulandian","sanzima":"PLD"},{"name":"双鸭山","match":"双鸭山|shuangyashan|SYS","pinyin":"shuangyashan","sanzima":"SYS"},{"name":"鹤岗","match":"鹤岗|hegang|HG","pinyin":"hegang","sanzima":"HG"},{"name":"绥化","match":"绥化|suihua|SH","pinyin":"suihua","sanzima":"SH"},{"name":"大兴安岭","match":"大兴安岭|daxinganling|DXAL","pinyin":"daxinganling","sanzima":"DXAL"},{"name":"松原","match":"松原|songyuan|SY","pinyin":"songyuan","sanzima":"SY"},{"name":"九台","match":"九台|jiutai|JT","pinyin":"jiutai","sanzima":"JT"},{"name":"榆树","match":"榆树|yushu|YS","pinyin":"yushu","sanzima":"YS"},{"name":"桦甸","match":"桦甸|huadian|HD","pinyin":"huadian","sanzima":"HD"},{"name":"舒兰","match":"舒兰|shulan|SL","pinyin":"shulan","sanzima":"SL"},{"name":"磐石","match":"磐石|panshi|PS","pinyin":"panshi","sanzima":"PS"},{"name":"公主岭","match":"公主岭|gongzhuling|GZL","pinyin":"gongzhuling","sanzima":"GZL"},{"name":"双辽","match":"双辽|shuangliao|SL","pinyin":"shuangliao","sanzima":"SL"},{"name":"洮南","match":"洮南|taonan|TN","pinyin":"taonan","sanzima":"TN"},{"name":"大安","match":"大安|daan|DA","pinyin":"daan","sanzima":"DA"},{"name":"图们","match":"图们|tumen|TM","pinyin":"tumen","sanzima":"TM"},{"name":"珲春","match":"珲春|huichun|HC","pinyin":"huichun","sanzima":"HC"},{"name":"龙井","match":"龙井|longjin|LJ","pinyin":"longjin","sanzima":"LJ"},{"name":"和龙","match":"和龙|helong|HL","pinyin":"helong","sanzima":"HL"},{"name":"达州","match":"达州|dazhou|DZ","pinyin":"dazhou","sanzima":"DZ"},{"name":"自贡","match":"自贡|zigong|ZG","pinyin":"zigong","sanzima":"ZG"},{"name":"雅安","match":"雅安|yaan|YA","pinyin":"yaan","sanzima":"YA"},{"name":"都江堰","match":"都江堰|dujiangyan|DJY","pinyin":"dujiangyan","sanzima":"DJY"},{"name":"眉山","match":"眉山|meishan|MS","pinyin":"meishan","sanzima":"MS"},{"name":"遂宁","match":"遂宁|suining|SN","pinyin":"suining","sanzima":"SN"},{"name":"内江","match":"内江|neijiang|NJ","pinyin":"neijiang","sanzima":"NJ"},{"name":"巴中","match":"巴中|bazhong|BZ","pinyin":"bazhong","sanzima":"BZ"},{"name":"西昌","match":"西昌|xichang|XC","pinyin":"xichang","sanzima":"XC"},{"name":"安康","match":"安康|ankang|AK","pinyin":"ankang","sanzima":"AK"},{"name":"铜川","match":"铜川|tongchuan|TC","pinyin":"tongchuan","sanzima":"TC"},{"name":"商洛","match":"商洛|shangluo|SL","pinyin":"shangluo","sanzima":"SL"},{"name":"华阴","match":"华阴|huayin|HY","pinyin":"huayin","sanzima":"HY"},{"name":"兴平","match":"兴平|xingping|XP","pinyin":"xingping","sanzima":"XP"},{"name":"韩城","match":"韩城|hancheng|HC","pinyin":"hancheng","sanzima":"HC"},{"name":"张家口","match":"张家口|zhangjiakou|ZJK","pinyin":"zhangjiakou","sanzima":"ZJK"},{"name":"邢台","match":"邢台|xingtai|XT","pinyin":"xingtai","sanzima":"XT"},{"name":"武安","match":"武安|wuan|WA","pinyin":"wuan","sanzima":"WA"},{"name":"鹿泉","match":"鹿泉|luquan|LQ","pinyin":"luquan","sanzima":"LQ"},{"name":"辛集","match":"辛集|xinji|XJ","pinyin":"xinji","sanzima":"XJ"},{"name":"藁城","match":"藁城|gaocheng|GC","pinyin":"gaocheng","sanzima":"GC"},{"name":"新乐","match":"新乐|xinle|XL","pinyin":"xinle","sanzima":"XL"},{"name":"晋州","match":"晋州|jinzhouhb|JZ","pinyin":"jinzhouhb","sanzima":"JZ"},{"name":"南宫","match":"南宫|nangong|NG","pinyin":"nangong","sanzima":"NG"},{"name":"沙河","match":"沙河|shahe|SH","pinyin":"shahe","sanzima":"SH"},{"name":"冀州","match":"冀州|jizhou|JZ","pinyin":"jizhou","sanzima":"JZ"},{"name":"深州","match":"深州|shenzhou|SZ","pinyin":"shenzhou","sanzima":"SZ"},{"name":"任丘","match":"任丘|renqiu|RQ","pinyin":"renqiu","sanzima":"RQ"},{"name":"河间","match":"河间|hejian|HJ","pinyin":"hejian","sanzima":"HJ"},{"name":"石狮","match":"石狮|shishi|SS","pinyin":"shishi","sanzima":"SS"},{"name":"晋江","match":"晋江|jinjiang|JJ","pinyin":"jinjiang","sanzima":"JJ"},{"name":"三明","match":"三明|sanming|SM","pinyin":"sanming","sanzima":"SM"},{"name":"莆田","match":"莆田|putian|PT","pinyin":"putian","sanzima":"PT"},{"name":"南平","match":"南平|nanping|NP","pinyin":"nanping","sanzima":"NP"},{"name":"长乐","match":"长乐|changle|CL","pinyin":"changle","sanzima":"CL"},{"name":"南安","match":"南安|nanan|NA","pinyin":"nanan","sanzima":"NA"},{"name":"嘉峪关","match":"嘉峪关|jiayuguan|JYG","pinyin":"jiayuguan","sanzima":"JYG"},{"name":"酒泉","match":"酒泉|jiuquan|JQ","pinyin":"jiuquan","sanzima":"JQ"},{"name":"甘南","match":"甘南|gannan|GN","pinyin":"gannan","sanzima":"GN"},{"name":"陇南","match":"陇南|longnan|LN","pinyin":"longnan","sanzima":"LN"},{"name":"白银","match":"白银|baiyin|BY","pinyin":"baiyin","sanzima":"BY"},{"name":"庆阳","match":"庆阳|qingyang|QY","pinyin":"qingyang","sanzima":"QY"},{"name":"定西","match":"定西|dingxi|DX","pinyin":"dingxi","sanzima":"DX"},{"name":"平凉","match":"平凉|pingliang|PL","pinyin":"pingliang","sanzima":"PL"},{"name":"金昌","match":"金昌|jinchang|JC","pinyin":"jinchang","sanzima":"JC"},{"name":"武威","match":"武威|wuwei|WW","pinyin":"wuwei","sanzima":"WW"},{"name":"临夏","match":"临夏|linxia|LX","pinyin":"linxia","sanzima":"LX"},{"name":"张掖","match":"张掖|zhangyi|ZY","pinyin":"zhangyi","sanzima":"ZY"},{"name":"婺源","match":"婺源|wuyuan|WY","pinyin":"wuyuan","sanzima":"WY"},{"name":"鄱阳","match":"鄱阳|poyang|PY","pinyin":"poyang","sanzima":"PY"},{"name":"乐平","match":"乐平|leping|LP","pinyin":"leping","sanzima":"LP"},{"name":"南康","match":"南康|nankang|NK","pinyin":"nankang","sanzima":"NK"},{"name":"信丰","match":"信丰|xinfeng|XF","pinyin":"xinfeng","sanzima":"XF"},{"name":"瑞金","match":"瑞金|ruijin|RJ","pinyin":"ruijin","sanzima":"RJ"},{"name":"井冈山","match":"井冈山|jinggangshan|JGS","pinyin":"jinggangshan","sanzima":"JGS"},{"name":"高安","match":"高安|gaoan|GA","pinyin":"gaoan","sanzima":"GA"},{"name":"樟树","match":"樟树|zhangshu|ZS","pinyin":"zhangshu","sanzima":"ZS"},{"name":"丰城","match":"丰城|fengcheng|FC","pinyin":"fengcheng","sanzima":"FC"},{"name":"宿州","match":"宿州|suzhouah|SZ","pinyin":"suzhouah","sanzima":"SZ"},{"name":"桐城","match":"桐城|tongcheng|TC","pinyin":"tongcheng","sanzima":"TC"},{"name":"天长","match":"天长|tianchang|TC","pinyin":"tianchang","sanzima":"TC"},{"name":"界首","match":"界首|jieshou|JS","pinyin":"jieshou","sanzima":"JS"},{"name":"宁国","match":"宁国|ningguo|NG","pinyin":"ningguo","sanzima":"NG"},{"name":"明光","match":"明光|mingguang|MG","pinyin":"mingguang","sanzima":"MG"},{"name":"仙桃","match":"仙桃|xiantao|XT","pinyin":"xiantao","sanzima":"XT"},{"name":"潜江","match":"潜江|qianjiang|QJ","pinyin":"qianjiang","sanzima":"QJ"},{"name":"天门","match":"天门|tianmen|TM","pinyin":"tianmen","sanzima":"TM"},{"name":"黄冈","match":"黄冈|huanggang|HG","pinyin":"huanggang","sanzima":"HG"},{"name":"孝感","match":"孝感|xiaogan|XG","pinyin":"xiaogan","sanzima":"XG"},{"name":"咸宁","match":"咸宁|xianning|XN","pinyin":"xianning","sanzima":"XN"},{"name":"恩施","match":"恩施|enshi|ES","pinyin":"enshi","sanzima":"ES"},{"name":"随州","match":"随州|suizhou|SZ","pinyin":"suizhou","sanzima":"SZ"},{"name":"萧山","match":"萧山|xiaoshan|XS","pinyin":"xiaoshan","sanzima":"XS"},{"name":"余杭","match":"余杭|yuhang|YH","pinyin":"yuhang","sanzima":"YH"},{"name":"桐庐","match":"桐庐|tonglu|TL","pinyin":"tonglu","sanzima":"TL"},{"name":"淳安","match":"淳安|chunan|CA","pinyin":"chunan","sanzima":"CA"},{"name":"醴陵","match":"醴陵|liling|LL","pinyin":"liling","sanzima":"LL"},{"name":"耒阳","match":"耒阳|leiyang|LY","pinyin":"leiyang","sanzima":"LY"},{"name":"冷水江","match":"冷水江|lengshuijiang|LSJ","pinyin":"lengshuijiang","sanzima":"LSJ"},{"name":"湘乡","match":"湘乡|xiangxiang|XX","pinyin":"xiangxiang","sanzima":"XX"},{"name":"长沙县","match":"长沙县|changshaxian|CSX","pinyin":"changshaxian","sanzima":"CSX"},{"name":"江都","match":"江都|jiangdu|JD","pinyin":"jiangdu","sanzima":"JD"},{"name":"泰兴","match":"泰兴|taixing|TX","pinyin":"taixing","sanzima":"TX"},{"name":"东台","match":"东台|dongtai|DT","pinyin":"dongtai","sanzima":"DT"},{"name":"兴化","match":"兴化|xinghua|XH","pinyin":"xinghua","sanzima":"XH"},{"name":"铜山县","match":"铜山县|tongshanxian|TSX","pinyin":"tongshanxian","sanzima":"TSX"},{"name":"姜堰","match":"姜堰|jiangyan|JY","pinyin":"jiangyan","sanzima":"JY"},{"name":"邳州","match":"邳州|peizhou|PZ","pinyin":"peizhou","sanzima":"PZ"},{"name":"沛县","match":"沛县|peixian|PX","pinyin":"peixian","sanzima":"PX"},{"name":"大丰","match":"大丰|dafeng|DF","pinyin":"dafeng","sanzima":"DF"},{"name":"仪征","match":"仪征|yizheng|YZ","pinyin":"yizheng","sanzima":"YZ"},{"name":"句容","match":"句容|jurong|JR","pinyin":"jurong","sanzima":"JR"},{"name":"沭阳县","match":"沭阳县|shuyangxian|YX","pinyin":"shuyangxian","sanzima":"YX"},{"name":"射阳县","match":"射阳县|sheyangxian|SYX","pinyin":"sheyangxian","sanzima":"SYX"},{"name":"扬中","match":"扬中|yangzhong|YZ","pinyin":"yangzhong","sanzima":"YZ"},{"name":"建湖县","match":"建湖县|jianhuxian|JHX","pinyin":"jianhuxian","sanzima":"JHX"},{"name":"章丘","match":"章丘|zhangqiu|ZQ","pinyin":"zhangqiu","sanzima":"ZQ"},{"name":"胶南","match":"胶南|jiaonan|JN","pinyin":"jiaonan","sanzima":"JN"},{"name":"平度","match":"平度|pingdu|PD","pinyin":"pingdu","sanzima":"PD"},{"name":"即墨","match":"即墨|jimo|JM","pinyin":"jimo","sanzima":"JM"},{"name":"龙口","match":"龙口|longkou|LK","pinyin":"longkou","sanzima":"LK"},{"name":"莱阳","match":"莱阳|laiyang|LY","pinyin":"laiyang","sanzima":"LY"},{"name":"蓬莱","match":"蓬莱|penglai|PL","pinyin":"penglai","sanzima":"PL"},{"name":"青州","match":"青州|qingzhou|QZ","pinyin":"qingzhou","sanzima":"QZ"},{"name":"诸城","match":"诸城|zhucheng|ZC","pinyin":"zhucheng","sanzima":"ZC"},{"name":"新泰","match":"新泰|xintai|XT","pinyin":"xintai","sanzima":"XT"},{"name":"荣成","match":"荣成|rongcheng|RC","pinyin":"rongcheng","sanzima":"RC"},{"name":"滨州","match":"滨州|binzhou|BZ","pinyin":"binzhou","sanzima":"BZ"},{"name":"阳泉","match":"阳泉|yangquan|YQ","pinyin":"yangquan","sanzima":"YQ"},{"name":"忻州","match":"忻州|xinzhou|XZ","pinyin":"xinzhou","sanzima":"XZ"},{"name":"乌海","match":"乌海|wuhai|WH","pinyin":"wuhai","sanzima":"WH"},{"name":"通辽市","match":"通辽市|tongliaoshi|TLS","pinyin":"tongliaoshi","sanzima":"TLS"},{"name":"锡林浩特","match":"锡林浩特|xilinhaote|XLHT","pinyin":"xilinhaote","sanzima":"XLHT"},{"name":"海拉尔","match":"海拉尔|hailaer|HLE","pinyin":"hailaer","sanzima":"HLE"},{"name":"二连浩特","match":"二连浩特|erlianhaote|ELHT","pinyin":"erlianhaote","sanzima":"ELHT"},{"name":"乌兰浩特","match":"乌兰浩特|wulahaote|WLHT","pinyin":"wulahaote","sanzima":"WLHT"},{"name":"石嘴山","match":"石嘴山|shizuishan|SZS","pinyin":"shizuishan","sanzima":"SZS"},{"name":"吴忠","match":"吴忠|wuzhong|WZ","pinyin":"wuzhong","sanzima":"WZ"},{"name":"中卫","match":"中卫|zhongwei|ZW","pinyin":"zhongwei","sanzima":"ZW"},{"name":"固原","match":"固原|guyuan|GY","pinyin":"guyuan","sanzima":"GY"},{"name":"青铜峡","match":"青铜峡|qingtongxia|QTX","pinyin":"qingtongxia","sanzima":"QTX"},{"name":"保山","match":"保山|baoshan|BS","pinyin":"baoshan","sanzima":"BS"},{"name":"昭通","match":"昭通|zhaotong|ZT","pinyin":"zhaotong","sanzima":"ZT"},{"name":"临沧","match":"临沧|lincang|LC","pinyin":"lincang","sanzima":"LC"},{"name":"景洪","match":"景洪|jinghong|JH","pinyin":"jinghong","sanzima":"JH"},{"name":"香格里拉","match":"香格里拉|xianggelila|XGLL","pinyin":"xianggelila","sanzima":"XGLL"},{"name":"文山","match":"文山|wenshan|WS","pinyin":"wenshan","sanzima":"WS"},{"name":"楚雄","match":"楚雄|chuxiong|CX","pinyin":"chuxiong","sanzima":"CX"},{"name":"个旧","match":"个旧|gejiu|GJ","pinyin":"gejiu","sanzima":"GJ"},{"name":"蒙自","match":"蒙自|mengzi|MZ","pinyin":"mengzi","sanzima":"MZ"},{"name":"凯里","match":"凯里|kaili|KL","pinyin":"kaili","sanzima":"KL"},{"name":"毕节","match":"毕节|bijie|BJ","pinyin":"bijie","sanzima":"BJ"},{"name":"铜仁","match":"铜仁|tongren|TR","pinyin":"tongren","sanzima":"TR"},{"name":"福泉","match":"福泉|fuquan|FQ","pinyin":"fuquan","sanzima":"FQ"},{"name":"镇远","match":"镇远|zhenyuan|ZY","pinyin":"zhenyuan","sanzima":"ZY"},{"name":"梧州","match":"梧州|wuzhou|WZ","pinyin":"wuzhou","sanzima":"WZ"},{"name":"防城港","match":"防城港|fangchenggang|FCG","pinyin":"fangchenggang","sanzima":"FCG"},{"name":"钦州","match":"钦州|qinzhou|QZ","pinyin":"qinzhou","sanzima":"QZ"},{"name":"贵港","match":"贵港|guigang|GG","pinyin":"guigang","sanzima":"GG"},{"name":"河池","match":"河池|hechi|HC","pinyin":"hechi","sanzima":"HC"},{"name":"新密","match":"新密|xinmi|XM","pinyin":"xinmi","sanzima":"XM"},{"name":"沁阳","match":"沁阳|qinyang|QY","pinyin":"qinyang","sanzima":"QY"},{"name":"巩义","match":"巩义|gongyi|GY","pinyin":"gongyi","sanzima":"GY"},{"name":"孟州","match":"孟州|mengzhou|MZ","pinyin":"mengzhou","sanzima":"MZ"},{"name":"禹州","match":"禹州|yuzhou|YZ","pinyin":"yuzhou","sanzima":"YZ"},{"name":"义马","match":"义马|yima|YM","pinyin":"yima","sanzima":"YM"},{"name":"灵宝","match":"灵宝|lingbao|LB","pinyin":"lingbao","sanzima":"LB"},{"name":"邓州","match":"邓州|dengzhou|DZ","pinyin":"dengzhou","sanzima":"DZ"},{"name":"永城","match":"永城|yongcheng|YC","pinyin":"yongcheng","sanzima":"YC"},{"name":"石龙","match":"石龙|shilong|SL","pinyin":"shilong","sanzima":"SL"},{"name":"宝安","match":"宝安|baoan|BA","pinyin":"baoan","sanzima":"BA"},{"name":"龙华","match":"龙华|longhua|LH","pinyin":"longhua","sanzima":"LH"},{"name":"云浮","match":"云浮|yunfu|YF","pinyin":"yunfu","sanzima":"YF"},{"name":"惠东","match":"惠东|huidong|HD","pinyin":"huidong","sanzima":"HD"},{"name":"博罗","match":"博罗|boluo|BL","pinyin":"boluo","sanzima":"BL"},{"name":"龙门","match":"龙门|longmen|LM","pinyin":"longmen","sanzima":"LM"},{"name":"开平","match":"开平|kaiping|KP","pinyin":"kaiping","sanzima":"KP"},{"name":"恩平","match":"恩平|enping|EP","pinyin":"enping","sanzima":"EP"},{"name":"四会","match":"四会|sihui|SH","pinyin":"sihui","sanzima":"SH"},{"name":"临安","match":"临安|linan|LA","pinyin":"linan","sanzima":"LA"},{"name":"余姚","match":"余姚|yuyao|YY","pinyin":"yuyao","sanzima":"YY"},{"name":"上虞","match":"上虞|shangyu|SY","pinyin":"shangyu","sanzima":"SY"},{"name":"慈溪","match":"慈溪|cixi|CX","pinyin":"cixi","sanzima":"CX"},{"name":"奉化","match":"奉化|fenghua|FH","pinyin":"fenghua","sanzima":"FH"},{"name":"江山","match":"江山|jiangshan|JS","pinyin":"jiangshan","sanzima":"JS"},{"name":"丽水","match":"丽水|lishui|LS","pinyin":"lishui","sanzima":"LS"},{"name":"永康","match":"永康|yongkang|YK","pinyin":"yongkang","sanzima":"YK"},{"name":"临海","match":"临海|linhai|LH","pinyin":"linhai","sanzima":"LH"},{"name":"温岭","match":"温岭|wenling|WL","pinyin":"wenling","sanzima":"WL"},{"name":"乐清","match":"乐清|leqing|LQ","pinyin":"leqing","sanzima":"LQ"},{"name":"瑞安","match":"瑞安|ruian|RA","pinyin":"ruian","sanzima":"RA"},{"name":"兰溪","match":"兰溪|lanxi|LX","pinyin":"lanxi","sanzima":"LX"},{"name":"诸暨","match":"诸暨|zhuji|ZJ","pinyin":"zhuji","sanzima":"ZJ"},{"name":"龙泉","match":"龙泉|longquan|LQ","pinyin":"longquan","sanzima":"LQ"},{"name":"嵊州","match":"嵊州|shengzhou|SZ","pinyin":"shengzhou","sanzima":"SZ"},{"name":"南海","match":"南海|nanhai|NH","pinyin":"nanhai","sanzima":"NH"},{"name":"虎门","match":"虎门|humen|HM","pinyin":"humen","sanzima":"HM"},{"name":"长安","match":"长安|changan|CA","pinyin":"changan","sanzima":"CA"},{"name":"厚街","match":"厚街|houjie|HJ","pinyin":"houjie","sanzima":"HJ"},{"name":"常平","match":"常平|changping|CP","pinyin":"changping","sanzima":"CP"},{"name":"三水","match":"三水|sanshui|SS","pinyin":"sanshui","sanzima":"SS"},{"name":"高明","match":"高明|gaoming|GM","pinyin":"gaoming","sanzima":"GM"},{"name":"樟木头","match":"樟木头|changmutou|ZMT","pinyin":"changmutou","sanzima":"ZMT"},{"name":"大朗 ","match":"大朗|dalang|DL","pinyin":"dalang","sanzima":"DL"},{"name":"大岭山","match":"大岭山|dalingshan|DLS","pinyin":"dalingshan","sanzima":"DLS"},{"name":"凤岗","match":"凤岗|fenggang|FG","pinyin":"fenggang","sanzima":"FG"},{"name":"龙岗","match":"龙岗|longgang|LG","pinyin":"longgang","sanzima":"LG"},{"name":"盐田","match":"盐田|yantian|YT","pinyin":"yantian","sanzima":"YT"},{"name":"昌吉","match":"昌吉|changji|CJ","pinyin":"changji","sanzima":"CJ"},{"name":"库尔勒","match":"库尔勒|kuerle|KEL","pinyin":"kuerle","sanzima":"KEL"},{"name":"石河子","match":"石河子|shihezi|SHZ","pinyin":"shihezi","sanzima":"SHZ"},{"name":"邵阳","match":"邵阳|shaoyang|SY","pinyin":"shaoyang","sanzima":"SY"},{"name":"来宾区","match":"来宾区|laibinqu|LBQ","pinyin":"laibinqu","sanzima":"LBQ"},{"name":"肥东县","match":"肥东县|feidong|FDX","pinyin":"feidong","sanzima":"FDX"},{"name":"肥西县","match":"肥西县|feixi|FXX","pinyin":"feixi","sanzima":"FXX"},{"name":"塘厦","match":"塘厦|tangxia|TX","pinyin":"tangxia","sanzima":"TX"},{"name":"万宁","match":"万宁|wanning|WN","pinyin":"wanning","sanzima":"WN"},{"name":"保亭","match":"保亭|baoting|BT","pinyin":"baoting","sanzima":"BT"},{"name":"五指山","match":"五指山|wuzhishan|WZS","pinyin":"wuzhishan","sanzima":"WZS"},{"name":"奎屯","match":"奎屯|kuitun|KT","pinyin":"kuitun","sanzima":"KT"},{"name":"阿克苏","match":"阿克苏|akesu|AKS","pinyin":"akesu","sanzima":"AKS"}]');
        echo '<pre>';print_r($all);exit;
        foreach ($all as $item) {
            $sql = "UPDATE `region` SET `region_pinyin`='{$item->region_pinyin}',`region_abbr`='{$item->region_abbr}' WHERE `region_name`='{$item->name}'";
            if ($this->db->query($sql)) {
                echo "<p>success ".$item->name.'<p>';
            } else {
                echo "<p>error ".$item->name.'<p>';
            }
        }
    }
    
    public function grid($pg=1)
    {
        $num = ($pg-1)*20;
        $regin_type = $this->input->get('region_type') ? $this->input->get('region_type') : 0;
        $parent_id = $this->input->get('parent_id') ? $this->input->get('parent_id') : 0;
        $config['suffix'] = $this->pageGetParam($this->input->get());
        $config['base_url'] = base_url('region/grid');
        $config['total_rows'] = $this->region->total($parent_id, $regin_type);
        $config['uri_segment'] = 3;
        $this->pagination->initialize($config);
        $data['pg_link'] = $this->pagination->create_links();
        $data['page_list'] = $this->region->page_list($num, $parent_id, $regin_type);
        $data['all_rows'] = $config['total_rows'];
        $data['pg_now'] = $pg;
        $data['regin_type'] = $this->reginType;
        $this->load->view('region/grid', $data);
    }
    
    public function add()
    {
        $this->load->view('region/add');
    }
    
    public function addPost()
    {
        $error = $this->validate();
        if (!empty($error)) {
            $this->error('region/add', $this->input->get(), $error);
        }
        $this->db->trans_start();
        $resultId = $this->region->insertRegion($this->input->post());
        $this->db->trans_complete();
    
        if ($resultId) {
            $this->success('region/grid', $this->input->get(), '保存成功！');
        } else {
            $this->error('region/add/', $this->input->get(), '保存失败！');
        }
    }
    
    public function edit($id)
    {
        $result = $this->region->findById($id);
        if($result->num_rows() <= 0) {
            $this->redirect('region/grid');
        }
        $data['region'] = $result->row();
        $this->load->view('region/edit', $data);
    }
    
    public function editPost()
    {
        $id = $this->input->post('region_id');
        $error = $this->validate();
        if (!empty($error)) {
            $this->error('region/edit', $id, $error);
        }
        
        $this->db->trans_start();
        $resultId = $this->region->updateRegion($this->input->post());
        $this->db->trans_complete();
    
        if ($resultId) {
            $this->success('region/grid', $this->input->get(), '保存成功！');
        } else {
            $this->error('region/edit/'.$id, $this->input->get(), '保存失败！');
        }
    }
    
    public function validate()
    {
        $error = array();
        if ($this->validateParam($this->input->post('region_name'))) {
            $error[] = '中文名称不能为空';
        }
        if ($this->validateParam($this->input->post('region_pinyin'))) {
            $error[] = '英文全程不能为空';
        }
        if ($this->validateParam($this->input->post('region_abbr'))) {
            $error[] = '英文缩写不能为空';
        }
        return $error;
    }
    
    /**
     * 根据ajax反馈的父id，返回所有子集 （json格式）
     */
    public function select_children($parent_id=0)
    {
        $childrenData = array();
        if ($parent_id) {
            $childrenData = $this->region->children_of($parent_id);
        }
        echo json_encode($childrenData);exit;
    }
    
    public function autocompleteCity()
    {
        $result = $this->region->findByAutocomplete(2); //1.代表省；2.代表城市；3.代表区或县
        $cityArray = $result->result_array();
        echo json_encode($cityArray);exit;
    }
    
    public function ajaxGetRegion($pg = 1){
        $num = ($pg-1)*20;
        $config['suffix'] = $this->pageGetParam($this->input->get());
        $config['base_url'] = base_url('region/grid');
        $config['total_rows'] = $this->region->totalByArray($this->input->get());
        $config['uri_segment'] = 3;
        $this->pagination->initialize($config);
        $data['pg_list'] = $this->pagination->create_links();
        $data['page_list'] = $this->region->findByArray($num, $this->input->get());
        $data['all_rows'] = $config['total_rows'];
        $data['pg_now'] = $pg;
        
        echo json_encode(array(
            'status'=>true,
            'html'  =>$this->load->view('region/ajaxregion/ajaxRegionData', $data, true)
        ));exit;
    }
}